﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataTransferObject
{
    public class clsBoDe
    {
        private int _intMaBoDe;
        private string _strTenBoDe;
        private clsChuyenMuc _ChuyenMuc;
        private int _intSoCauHoi;
        private int _intThoiGianLamBai;
        private string _strMoTa;
        private int _intSoLuotThucHien;
    
        public clsBoDe()
        {
        }
        // Dùng cho việc thêm
        public clsBoDe( string TenBoDe, int ChuyenMuc, string MoTa)
        {
            _ChuyenMuc = new clsChuyenMuc();
            _strTenBoDe = TenBoDe;
            _ChuyenMuc.MaChuyenMuc = ChuyenMuc;
            _strMoTa = MoTa;
        }
        // Dùng cho việc sửa
        public clsBoDe(int MaDe, string TenBoDe, int ChuyenMuc, string MoTa)
        {
            _ChuyenMuc = new clsChuyenMuc();
            _intMaBoDe = MaDe;
            _strTenBoDe = TenBoDe;
            _ChuyenMuc.MaChuyenMuc = ChuyenMuc;
            _strMoTa = MoTa;
        }
        // Dùng cho việc xóa
        public clsBoDe(int MaBoDe)
        {
            _intMaBoDe = MaBoDe;
        }
        // Dùng khi lấy thông tin
        public clsBoDe(int made, string tende, int machuyenmuc, int socauhoi, int thoigianlambai, string mota, int soluotthuchien)
        {           
            _ChuyenMuc = new clsChuyenMuc();
            _intMaBoDe = made;
            _strTenBoDe = tende;
            _ChuyenMuc.MaChuyenMuc = machuyenmuc;
            _intSoCauHoi = socauhoi;
            _intThoiGianLamBai = thoigianlambai;
            _strMoTa = mota;
            _intSoLuotThucHien = soluotthuchien;
        }

        public int MaDe
        {
            get
            {
                return _intMaBoDe;
            }
            set
            {
                _intMaBoDe = value;
            }
        }
        public string  TenDe
        {
            get
            {
                return _strTenBoDe;
            }
            set
            {
                _strTenBoDe = value;
            }
        }
        public clsChuyenMuc ChuyenMuc
        {
            get
            {
                return _ChuyenMuc;
                
            }
            set
            {
                _ChuyenMuc = value;
            }
        }
        public int SoCauHoi
        {
            get
            {
                return _intSoCauHoi;
            }
            set
            {
                _intSoCauHoi = value;
            }
        }
        public int ThoiGianLamBai
        {
            get
            {
                return _intThoiGianLamBai;
            }
            set
            {
                _intThoiGianLamBai = value;
            }
        }
        public string  MoTa
        {
            get
            {
                return _strMoTa;
            }
            set
            {
                _strMoTa = value;
            }
        }
        public int SoLuotThucHien
        {
            get
            {
                return _intSoLuotThucHien;
            }
            set
            {
                _intSoLuotThucHien = value;
            }
        }
    }
}
